package com.rerun.entity;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * The type City.
 */
@TableName("city")
public class City extends Model<City> {

    private static final long serialVersionUID = -6954184674967938510L;
    private long serialId;
    private String cityId;
    private String cityName;
    private String cityUpId;

    /**
     * Gets serial id.
     *
     * @return the serial id
     */
    public long getSerialId() {
        return serialId;
    }

    /**
     * Sets serial id.
     *
     * @param serialId the serial id
     */
    public void setSerialId(long serialId) {
        this.serialId = serialId;
    }

    /**
     * Gets city id.
     *
     * @return the city id
     */
    public String getCityId() {
        return cityId;
    }

    /**
     * Sets city id.
     *
     * @param cityId the city id
     */
    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    /**
     * Gets city name.
     *
     * @return the city name
     */
    public String getCityName() {
        return cityName;
    }

    /**
     * Sets city name.
     *
     * @param cityName the city name
     */
    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    /**
     * Gets city up id.
     *
     * @return the city up id
     */
    public String getCityUpId() {
        return cityUpId;
    }

    /**
     * Sets city up id.
     *
     * @param cityUpId the city up id
     */
    public void setCityUpId(String cityUpId) {
        this.cityUpId = cityUpId;
    }


    @Override
    protected Serializable pkVal() {
        return this.cityId;
    }

    @Override
    public String toString() {
        return "{" +
                "serialId:" + serialId +
                ", cityId:" + cityId +
                ", cityName:" + cityName +
                ", cityUpId:" + cityUpId +
                '}';
    }
}
